$(document).ready(function() {
    //二级导航
    $("#one>li").hover(function() {
        // over
        $(this).children("ul").stop().slideToggle();
    });

    ///
    var i, v;
    $(".js_box select").change(function() {
        i = $(this).index();
        v = this.options[this.selectedIndex].value;
        switch (i) {
            case 0:
                console.log("字体：" + v);
                $("#book p").css("font-family", v)
                break;
            case 1:
                console.log("颜色：" + v);
                $("#book p").css("color", v)
                break;
            case 2:
                console.log("大小：" + v);
                $("#book p").css("font-size", v)
                break;
            case 3:
                console.log("背景：" + v);
                $(".book_box").css("background-color", v)
                break;
            default:
                console.log(i);
        }

    });

});